package com.txts.road.app.user.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.io.Serial;
import java.time.LocalDateTime;

/**
 * @author baoyr
 * @version 1.0
 * @description: 用户注册对象
 * @date 2025/7/17 14:02
 */
@Data
@Schema(description = "用户注册对象")
public class UserRegisterDTO {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "手机号")
    @Size(max=20, message="手机号长度不能超过20个字符")
    private String phone;

    @Schema(description = "密码")
    @Size(max=255, message="密码长度不能超过255个字符")
    private String password;

    @Schema(description = "昵称")
    @Size(max=50, message="昵称长度不能超过50个字符")
    private String nickname;

    @Schema(description = "头像URL")
    @Size(max=500, message="头像URL长度不能超过500个字符")
    private String avatar;


}
